package com.shop.service;

import java.util.List;

public interface GeneralService<T> {
    public int add(T t) throws Exception;//增加

    public int update(T t) throws Exception;//更新

    public int del(T t) throws Exception ;//删除

    public T get(T t);//获取一个

    public List<T> getList(T t);//获取多个
}
